package casa.depesos.app.com.http.req;


import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.GetCodeBean;
import casa.depesos.app.com.http.parser.GetCodeParser;
import okhttp3.FormBody;

public class ReloanReq implements HttpReq<GetCodeBean> {
    String no, cardId;

    public ReloanReq(String no, String cardId) {
        this.no = no;
        this.cardId = cardId;
    }

    @Override
    public void req(ReqCallback<GetCodeBean> callback) {//  restartLoan
        FormBody.Builder builder = new FormBody.Builder();
        builder.add("lref", no)
                .add("crdef", cardId);
        Req.post("/app/financial/reinitiateCreditProcess", getParam(), getHeader(), builder.build(), new GetCodeParser(), callback, this);
    }
}
